<%@page import="Info.DoctorI"%>
<%@page import="java.util.List"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
	<div id="wrap">
		<div id="top_content">
			<div id="header">
				<div id="rightheader">
					<p>
						<%
							Date d = new Date();
							SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
						%>
						<%=sdf.format(d)%>
						<br />
					</p>
				</div>
				<div id="topheader">
					<h1 id="title">
						<a href="#">医生管理</a>
					</h1>
				</div>
				<div id="navigation"></div>
			</div>
			<div id="content">
				<p id="whereami"></p>
				<div class="head-l">
			    <a class="button button-little bg-blue" href="InsertDoctor.jsp"><span
				class="icon-power-off"></span><h3>添加医生</h3></a><br>
		        </div>
				<h1>Welcome!</h1>
				<table class="table1" width="750" border="1" cellpadding="0" cellspacing="0">
					<tr class="table_header">	
					    <td width="10%" align="center">ID</td>		
						<td width="10%" align="center">医生编号</td>
						<td width="10%" align="center">所属科室</td>
						<td width="10%" align="center">医生姓名</td>
						<td width="10%" align="center">医生性别</td>
						<td width="10%" align="center">医生职位</td>
						<td width="10%" align="center">登陆密码</td>
						<td width="10%" align="center">操作按钮</td>
					</tr>
					<%
					    List<DoctorI> list=(List<DoctorI>)request.getAttribute("doctors");
					      for(int i=0;i<list.size();i++){
						   DoctorI dd=list.get(i);
					%>
					<tr class="row1">
					    <td align="center"><%=dd.getId()%></td>
						<td align="center"><%=dd.getDnum()%></td>
						<td align="center"><%=dd.getKnum()%></td>
						<td align="center"><%=dd.getName()%></td>
						<td align="center"><%=dd.getSex()%></td>
						<td align="center"><%=dd.getType()%></td>
						<td align="center"><%=dd.getPassword()%></td>
						<td align="center"><a href="UpdateDoctorS?dnum=<%=dd.getDnum()%>">修改</a>
						      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						                   <a href="DeleteDoctorS?dnum=<%=dd.getDnum()%>">删除</a></td>
					</tr>
                  <%} %>
				</table>
				<br>
				<br>
				<br>
			</div>
		</div>
		<div id="footer">
			<div id="footer_bg">ABC@126.com</div>
		</div>
	</div>
</body>
</html>
